import { View } from "../../../mvc/core/View";
import { LoaderHelp } from "../../../common/display/LoaderHelp";
import { ResFileConst } from "../../resource/ResFileConst";
import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../resource/ImagesConst";
//class LuckPointer
    
    export  class LuckPointer extends View
    {
        constructor()
        {
            super();
            this._sp = new Object /* flash.display.Sprite */();
            addChild(this._sp);
            this.initBitmap();
            return;
        }

        /* internal  */initBitmap(): void
        {
            this._pointer = new Object /* flash.display.Bitmap */();
            this._pointer.x = 20;
            this._sp.addChild(this._pointer);
            this._buttom = new Object /* flash.display.Bitmap */();
            this._buttom.y = 50;
            this._sp.addChild(this._buttom);
            LoaderHelp.addResCallBack(ResFileConst.luckAwards, this.onResLoaded);
            return;
        }

        /* internal  */onResLoaded(): void
        {
            this._buttom.bitmapData = GlobalClass.getBitmapData(ImagesConst.luckButtom);
            this._pointer.bitmapData = GlobalClass.getBitmapData(ImagesConst.luckPointer);
            return;
        }

        /* internal */ /* var */_buttom: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_pointer: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_sp: Object /* flash.display.Sprite */;
    }
